<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    // 作业1：[1, 5, 8,88,100,23] [2,124,66,77,88,999] 通过函数封装 求两个数组的最大值（使用展开运算符）
    let arr =[1, 5, 8,88,100,23]
    let arr2 =[2,124,66,77,88,999]
    console.log(`最大值${Math.max(...arr2,...arr)}`);
    console.log(`最小值${Math.min(...arr2,...arr)}`);
  </script>
</body>
</html>